package com.lkeqi.tags.service;

import com.lkeqi.tags.common.BaseResponse;
import com.lkeqi.tags.dto.request.RegisterRequestParam;
import com.lkeqi.tags.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【user】的数据库操作Service
* @createDate 2025-04-12 10:00:20
*/
public interface UserService extends IService<User> {

    BaseResponse<Long> userRegister(RegisterRequestParam registerRequestParam);

    BaseResponse<User> login(String userNo , String password , HttpServletRequest request);

    BaseResponse<List<User>> list(String username , HttpServletRequest request);

    BaseResponse deleteById(long id, HttpServletRequest request);

    User getSafeUser(User user);

    BaseResponse<Integer> logout(HttpServletRequest request);
}
